import {
  orderInfo,
  getRisk,
  userAuthenticationInfo,
  orderExpress,
  lookContract,
  refreshContract,
  getCreditQueryTime,
  isOpenNotary,
  auditOrder,
  userCreateSign,
  applyCreditQuery,
  getCreditQueryResult,
  applyContractLeasing,
  applyResultQuery,
  repayment,
  settleDataReport,
  settleReportConfirm,
  getSettleResult,
  settleRecovery,

  // 旧征信
  creditQueryCreate,
  getQueryCreditResult,
  creditLoanReport,
  creditRepay,
  creditSettle,
  creditGetReportFile
} from '@/services/RiskControl'

export default () => {
  const GetOrderInfo = (params: any) => {
    return orderInfo(params)
  }

  const GetRisk = (params: any) => {
    return getRisk(params)
  }

  const UserAuthenticationInfo = (params: any) => {
    return userAuthenticationInfo(params)
  }

  const OrderExpress = (params: any, hideNotice?: boolean) => {
    return orderExpress(params, hideNotice)
  }

  const LookContract = (params: any) => {
    return lookContract(params)
  }

  const RefreshContract = (params: any) => {
    return refreshContract(params)
  }

  const GetCreditQueryTime = (params: any) => {
    return getCreditQueryTime(params)
  }

  const getIsOpenNotary = (params: any) => {
    return isOpenNotary(params)
  }

  const AuditOrder = (params: any) => {
    return auditOrder(params)
  }

  // 征信 ------------------------------

  // 用户征信查询注册并生成文件
  const UserCreateSign = (params: any) => {
    return userCreateSign(params)
  }

  const ApplyCreditQuery = (params: any) => {
    return applyCreditQuery(params)
  }

  const GetCreditQueryResult = (params: any) => {
    return getCreditQueryResult(params)
  }

  const ApplyContractLeasing = (params: any) => {
    return applyContractLeasing(params)
  }

  const ApplyResultQuery = (params: any) => {
    return applyResultQuery(params)
  }

  const Repayment = (params: any) => {
    return repayment(params)
  }

  const SettleDataReport = (params: any) => {
    return settleDataReport(params)
  }

  const SettleReportConfirm = (params: any) => {
    return settleReportConfirm(params)
  }

  const GetSettleResult = (params: any) => {
    return getSettleResult(params)
  }

  const SettleRecovery = (params: any) => {
    return settleRecovery(params)
  }

  // 旧征信
  const CreditQueryCreate = (params: any) => {
    return creditQueryCreate(params)
  }

  const GetQueryCreditResult = (params: any) => {
    return getQueryCreditResult(params)
  }

  const CreditLoanReport = (params: any) => {
    return creditLoanReport(params)
  }

  const CreditRepay = (params: any) => {
    return creditRepay(params)
  }

  const CreditSettle = (params: any) => {
    return creditSettle(params)
  }

  const CreditGetReportFile = (params: any) => {
    return creditGetReportFile(params)
  }

  return {
    GetOrderInfo,
    GetRisk,
    UserAuthenticationInfo,
    OrderExpress,
    LookContract,
    RefreshContract,
    GetCreditQueryTime,
    getIsOpenNotary,
    AuditOrder,

    // 征信
    UserCreateSign,
    ApplyCreditQuery,
    GetCreditQueryResult,
    ApplyContractLeasing,
    ApplyResultQuery,
    Repayment,
    SettleDataReport,
    SettleReportConfirm,
    GetSettleResult,
    SettleRecovery,

    // 旧征信
    CreditQueryCreate,
    GetQueryCreditResult,
    CreditLoanReport,
    CreditRepay,
    CreditSettle,
    CreditGetReportFile
  }
}
